﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Certificate
{
    public partial class edited_cer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"]);
            string cer = Request.QueryString["cer"];
            var get_cer = new TblCertificateController().FetchAll().Where(x=>x.CerId==id).Single();
            new TblCertificateController().Update(id, cer, get_cer.CerActive, get_cer.CerNote);
        }
    }
}